gtkimcontextwayland: Save context even when text_input isn't around yet
authorGuido Günther <agx@sigxcpu.org>
Tue, 18 Jan 2022 13:22:24 +0000 (14:22 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Jan 2022 10:20:46 +0000 (10:20 +0000)
commit45397534eb5cc12e8c353ddd18a888e21c91f8d9
tree23900d7ec7b1dca6184ceba101afc8caba201e4d
parent6fd29e6600a78a0fe877c455faf1620be4917673
gtkimcontextwayland: Save context even when text_input isn't around yet

Remember the current context on focus-in even though the text-input
isn't set up yet. This helps in the case where the text-input is not yet
created but a widget already got focused. Without that the enable()
invocation in text_input_enter() woulnd't be invoked leaving the input
method disabled.

This fixes

    gtk4-demo --run=search_entry

which would initially not show the on-screen keyboard when e.g using
phoc/sway as compositor.
gtk/gtkimcontextwayland.c